﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace PotentialRentals.Models
{
    interface Amenity
    {
        int AmenityId { get; set; }

        string Name { get; set; }

        string Description { get; set; }
    }

    public class AddressAmenity : Amenity
    {
        [Key]
        public int AmenityId { get; set; }

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(50)]
        public string Description { get; set; }

        public virtual ICollection<Rental> Addresses { get; set; }
    }

    public class RentalAmenity : Amenity
    {
        [Key]
        public int AmenityId { get; set; }

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(50)]
        public string Description { get; set; }

        public virtual ICollection<Rental> Rentals { get; set; }
    }
}